using UnityEngine;

public class IPhoneXScript : MonoBehaviour
{
	public RectTransform[] contentToResize;

	public Camera[] camerasToResize;

	public float canvasScale = 0.9f;

	private void Start()
	{
		Camera[] array = camerasToResize;
		foreach (Camera camera in array)
		{
			if (camera.aspect < 0.5f)
			{
				camera.orthographicSize *= 1.214f;
				for (int j = 0; j < contentToResize.Length; j++)
				{
					contentToResize[j].localScale = Vector3.one * canvasScale;
				}
			}
		}
	}
}
